package com.tx;

import java.util.UUID;

import org.junit.Test;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.jdbc.datasource.DataSourceTransactionManager;
import org.springframework.transaction.annotation.Transactional;

public class TxTest {
	 AnnotationConfigApplicationContext application = new
	 AnnotationConfigApplicationContext(TxConfig.class);

	@Test
	public void t2() {
		UpdateTest bean = application.getBean(UpdateTest.class);
		bean.insert1();
	}

	@Test
	public void t1() {
		UUID randomUUID = UUID.randomUUID();
		System.out.println(randomUUID);
		System.out.println(randomUUID.toString());
		String string = randomUUID.toString();
		System.out.println(string.replaceAll("-", ""));

	}
}